package com.chunayev.numerology.domain;

import java.io.Serializable;

import com.sleepycat.persist.model.Persistent;
import com.sleepycat.persist.model.Relationship;
import com.sleepycat.persist.model.SecondaryKey;

/**
 * @author Sergey Chunayev
 */

@Persistent
public class BaseEntity implements Serializable {
    
    /**
     * 
     */
    private static final long serialVersionUID = -3371988991367888257L;
    
    @SecondaryKey(relate = Relationship.ONE_TO_ONE)
    private String name;
    
    /**
     * @return the name
     */
    public String getName() {
        return this.name;
    }
    
    /**
     * @param name
     *            the name to set
     */
    public void setName(final String name) {
        this.name = name;
    }
    
    /*
     * (non-Javadoc)
     * @see java.lang.Object#toString()
     */
    @Override
    public String toString() {
        return name;
    }
}
